package com.tao.factorys;

import com.tao.pojo.Miaosha;
import org.springframework.stereotype.Component;

/**
 * @Author: alubus
 * @Date: 2021/11/12 17:04
 * @Package: com.tao.factorys
 */
@Component
public class MiaoshaFactory {

    public Miaosha getMiaosha(String id,String qname,int stock){

        return new Miaosha(id,qname,stock);
    };

    public Miaosha getMiaosha(String id){

        return this.getMiaosha(id,"商品测试",20);
    };


    public Miaosha getMiaosha(){
        return this.getMiaosha("666","商品测试",20);
    };



}
